package com.hondee.fuzzyquery.entity;

import java.util.ArrayList;
import java.util.List;

public class EntityCollections {

	private List<Entity<?>> data;
	
	public EntityCollections(){
		data = new ArrayList<>();
	}
	public EntityCollections(Entity<?> entity){
		this();
		put(entity);
	}
	
	public synchronized void put(Entity<?> entity){
		this.data.add(entity);
	}
	
	public List<Entity<?>> getAll(){
		return data;
	}
	
}
